Sha256: c08aab8d1a64e15df4bbca2309a9b1097ce17dbfad2ea4e1070ed8e4916bdbd1
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
- return_to = params[:return_to].presence || request.referer input type='hidden' name='return_to' value=return_to .form-actions button.btn.btn-primary type="submit" name="_save" data-disable-with=t('admin.form.save') = icon('ok', true) = t('admin.form.save') span.extra_buttons - unless resource.new_record? span.next_prev_buttons button.btn.btn-info type="submit" name="_add_edit_prev" data-disable-with=t('admin.form.save_and_edit_prev') = icon('chevron-left', true) = t('admin.form.save_and_edit_prev') button.btn.btn-info type="submit" name="_add_edit_next" data-disable-with=t('admin.form.save_and_edit_next') = t('admin.form.save_and_edit_next') = icon('chevron-right', true) - if can? :create, resource_class button.btn.btn-info type="submit" name="_add_another" data-disable-with=t('admin.form.save_and_add_another') = t('admin.form.save_and_add_another') - if can? :edit, resource button.btn.btn-info type="submit" name="_add_edit" data-disable-with=t('admin.form.save_and_edit') = t('admin.form.save_and_edit') a.btn href=(return_to || collection_path) = icon('remove') = t('admin.form.cancel')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.1.0 | app/views/admin/shared/_save_buttons.html.slim |