diff --git a/app/views/admin/seminars/_seminar_signup_table.html.erb b/app/views/admin/seminars/_seminar_signup_table.html.erb index 050267b..06a6fdc 100644 --- a/app/views/admin/seminars/_seminar_signup_table.html.erb +++ b/app/views/admin/seminars/_seminar_signup_table.html.erb @@ -1,7 +1,15 @@ <% if request.xhr? %> -
- <%= render :partial => "seminar_signup_render_table" %> + <%= render :partial => "seminar_signup_render_table" %> +
+ + <% if @can_edit %> +
+ <%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t("seminar.field_display_setting"), seminar_signup_admin_setting_admin_seminar_path(params[:id]) + "?page=table", :class => 'btn btn-primary' %> +
+ <% end %>
+ + <%= render 'layouts/delete_modal', delete_options: @delete_options %> <% else %>
@@ -15,16 +23,15 @@

<%= @seminar.title %>

<%= render :partial => "seminar_signup_render_table" %> -
+
+ + <% if @can_edit %> +
+ <%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t("seminar.field_display_setting"), seminar_signup_admin_setting_admin_seminar_path(params[:id]) + "?page=table", :class => 'btn btn-primary' %> +
+ <% end %> +
-
- - <% if @can_edit %> -
- <%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t("seminar.field_display_setting"), seminar_signup_admin_setting_admin_seminar_path(params[:id]) + "?page=table", :class => 'btn btn-primary' %> -
- <% end %> + <%= render 'layouts/delete_modal', delete_options: @delete_options %>
- - <%= render 'layouts/delete_modal', delete_options: @delete_options %> <% end %> \ No newline at end of file diff --git a/app/views/admin/seminars/seminar_signup.html.erb b/app/views/admin/seminars/seminar_signup.html.erb index c0a7cd7..6275533 100644 --- a/app/views/admin/seminars/seminar_signup.html.erb +++ b/app/views/admin/seminars/seminar_signup.html.erb @@ -1,22 +1,24 @@ - -
-
-
+<% unless request.xhr? %> + +
+
+
+
-
-<% if @can_edit %> - <% if params[:type].blank?%> - - <% end %> - + + <% end %> <% end %> <% if params[:type] == "table" || (!@can_edit) %>
@@ -26,54 +28,56 @@ <% else %> <%= render :partial => 'seminar_signup_dashboard' %> <% end %> - - \ No newline at end of file + +<% end %> \ No newline at end of file