Sha256: 83408f013369839940626d8b58f0f4cc96a7d4f9efb92008f7293fce5b66ec85
Contents?: true
Size: 771 Bytes
Versions: 11
Compression:
Stored size: 771 Bytes
Contents
.box-body .form-group = f.label :name = f.text_field :name, placeholder: 'Enter ...', class: 'form-control' .form-group = f.label :body - if current_page?(new_snippet_path) = f.text_area :body, id: "textarea", value: "\n\n\n\n\n\n\n\n", class: 'form-control' - else = f.text_area :body, id: "textarea", class: 'form-control' .box-footer button.btn.btn-flat.btn-primary.pull-right[type="submit"] - if current_page?(new_snippet_path) | Submit - else | Save - if current_page?(new_snippet_path) = link_to 'Cancel', snippets_path, class: 'btn btn-flat btn-default' - else = link_to 'Delete', snippet_path(@snippet), method: :delete, data: {confirm: 'Are you sure?'}, class: 'btn btn-flat btn-danger'
Version data entries
11 entries across 11 versions & 1 rubygems