-
if model = models
js_tag src: route(:assets, :xhr), suffix: Frontline::ASSETS_SUFFIX¶ ↑
-
crudifier = 'migratorFor' + model
-
form_id = crudifier + 'Form'
form.form-inline.controls-row id=form_id
label.checkbox - onclick = "$('#%s :input[name=migrations]').prop('checked', this.checked);" input type="checkbox" onclick=(onclick % form_id) span.text-info Toggle All | | label.checkbox input name="forceRun" type="checkbox" value=true span.text-warning Force Run hr - model[:migrations].each_pair do |name, m| div style="display: inline-block; margin-bottom: .5em;" - lastrunid = 'dropdownFor-%sModel-MigrationN%s' % [model[:dom_id], m[:step]] .btn-group a.btn href="#" input name="migrations" type="checkbox" value=m[:step] style="margin:0;" | span onclick=("fileCrudifier.toggleEditor('%s');" % m[:file]) = name - data = [route(:last_run, file: m[:path]), lastrunid] - oncl = "$.get('%s', function(r) { $('#%s').html(r) })" % data button.btn.dropdown-toggle data-toggle="dropdown" onclick=oncl span.caret ul.dropdown-menu li a div b Last Run small id=lastrunid unknown li.divider li - confirm = 'Migration will be deleted. Continue?' - onclick = "%s.delete('%s', '%s');" % [crudifier, m[:step], confirm] a href="#" onclick=onclick i.icon-remove | Delete
-