2012-05-11 08:44:40 +00:00
|
|
|
<% content_for :page_specific_css do %>
|
|
|
|
<%= stylesheet_link_tag "inc/permission-checkbox" %>
|
|
|
|
<% end %>
|
|
|
|
<% content_for :page_specific_javascript do %>
|
|
|
|
<%= javascript_include_tag "inc/permission-checkbox" %>
|
|
|
|
<%= javascript_include_tag "inc/search" %>
|
|
|
|
<%= javascript_include_tag "inc/modal-preview" %>
|
|
|
|
<% end %>
|
|
|
|
<%= form_tag('', :remote => true,:class => "prevent_enter_submit_form") %>
|
|
|
|
<div class="subnav clear">
|
|
|
|
<ul class="nav nav-pills filter pull-left">
|
|
|
|
<li class="accordion-group">
|
|
|
|
<div class="form-search" style="margin: 5px 10px;">
|
|
|
|
<%= label_tag :object, @ob_auth.auth_obj.class %>
|
|
|
|
<%= label_tag :module,"::" %>
|
|
|
|
<%= select "ob_auth",'id',@options_from_collection_for_select_ob_auth %>
|
|
|
|
<%= search_field_tag 'user_filter' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
2012-09-27 03:03:08 +00:00
|
|
|
<%= link_to t("object_auth.list_title_of_users"), admin_object_auth_ob_auth_show_path(:app_key=>@module_app.key), :class=>'preview_trigger btn btn-success pull-right'%>
|
2012-05-11 08:44:40 +00:00
|
|
|
|
|
|
|
</div>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%#= label_tag :role, t(:roles) %>
|
2012-05-11 08:44:40 +00:00
|
|
|
<div class="clear">
|
|
|
|
<%= content_tag :div do -%>
|
2012-09-19 03:12:22 +00:00
|
|
|
<% form_tag admin_object_auth_ob_auth_url do %>
|
2012-05-23 05:00:51 +00:00
|
|
|
<%= render :partial => "layouts/users_checkbox_ary" %>
|
|
|
|
<div class="form-actions form-fixed pagination-right">
|
2012-09-19 03:12:22 +00:00
|
|
|
<%= hidden_field_tag 'app_key', @module_app.key %>
|
2012-09-24 00:36:29 +00:00
|
|
|
<%= submit_tag t(:update_), :class => 'btn btn-primary' %>
|
2012-05-11 08:44:40 +00:00
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
var availableTags = [];
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
$(".prevent_enter_submit_form").bind("keypress", function(e) {
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2012-10-04 10:20:21 +00:00
|
|
|
$('#ob_auth_id').change(function() {
|
|
|
|
window.location.href = "/admin/object_auths/"+$(this).val()+"/new_interface?app_key="+$("#app_key").val();
|
2012-05-11 08:44:40 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|