Sha256: 6b8f575fad36588eea20f79d1882eaffc8792891d99d04c0d1f2d1e4b2c3054f
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
= form_for note, url: note.id ? member_note_path : member_notes_path do |f| - if note.errors.any? .error %h2= format(n_('An error prevented this note from being saved:', '%<nb>i errors prevented this note from being saved:', note.errors.count), nb: note.errors.count) %ul - note.errors.full_messages.each do |message| %li= message .field = f.label :content .field-input = f.text_area :content .field-hint= raw format(_('Markdown supported. %<preview_button>s'), preview_button: content_tag('a', _('Preview'), href: '#', onclick: 'mdPreviewContent(event)')) .field .field-input = f.check_box :sfw = f.label :sfw .field .field-input = f.check_box :published = f.label :published .field .field-input = f.check_box :hidden_in_history = f.label :hidden_in_history .field = f.label :license .field-input= license_selector f .field = f.label :language .field-input= language_selector f .field = f.label :projects .field-input= project_selector f .field = f.label :tags, for: :tags_list .field-input = f.text_field :tags_list .field-hint= _('List of comma-separated tags') .actions = f.submit _('Save'), class: 'btn btn--save' = render 'elabs/member/layouts/markdown-preview' :javascript var cm = initializeCodeMirrorIn(document.getElementById('note_content')) var mdPreviewContent = createMDPreviewer(cm)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elabs-3.0.0 | app/views/elabs/member/notes/_form.html.haml |
elabs-2.0.0 | app/views/elabs/member/notes/_form.html.haml |