Sha256: 313a3535054687c61d106e16273ff94975e50f11aa6ba8a07823d31d51abb34a
Contents?: true
Size: 1.1 KB
Versions: 16
Compression:
Stored size: 1.1 KB
Contents
<% submit_url = (@forum_category.new_record? ? admin_forum_categories_path : admin_forum_category_path) %> <%= simple_form_for @forum_category, url: submit_url, html: { class: 'form-horizontal' }, wrapper: :bs3_horizontal_form, wrapper_mappings: DmAdmin::FormWrapperMappings do |f| %> <%= f.error_notification message: "Please review the problems below" %> <% toolbar = capture do %> <%= link_to icons(:cancel), [:admin, @forum_category], class: 'btn btn-link btn-icon' %> <% end %> <%= panel title: @title, toolbar: toolbar do %> <%= locale_tabs do |locale| %> <%= f.input "name_#{locale}", label: 'Category Name', id: 'name_error', required: true %> <%#= f.input "description_#{locale}", as: :text, label: 'Description', input_html: { rows: 6, class: 'input-block-level monospaced' } %> <% end %> <%= submit_or_cancel cancel_url: [:admin, @forum_category], delete_url: ([:admin, @forum_category] unless @forum_category.new_record?), delete_confirm: 'Are you sure you wish to delete this forum category? All forums and comments will also be deleted!' %> <% end %> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems