recruitment/app/views/recruitments/_example_box.html.erb

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-01-19 13:31:41 +00:00
<style type="text/css">
#example-box .modal-dialog{
z-index: 1100;
}
#example-box .modal-footer button{
color: #000;
}
</style>
<div class="modal fade" id="example-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><%= t("recruitment.example") %></h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("recruitment.close") %></button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(".hint-btn").on("click",function(){
var html = $(this).parent().find("div.help-block").html();
$("#example-box").find(".modal-body").html(html);
$("#example-box").modal("show");
return false;
})
</script>