Sha256: aea6854c63970a78e2a136b1bd24b13569f1e3abc5eeccbb12c1c9962965a480

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

.head
  = step(@runseq.form_step, @xvars['total_form_steps'])
%p
- user = current_user || User.new
- form_class = 'formtastic'
- next_step = 'end_form'
- if @help
  %div(data-role="collapsible" data-theme="e" data-content-theme="c" data-mini="true")
    %h3 ตำแนะนำ
    %p= markdown(@help)
= form_tag({ :action => next_step } , {:multipart => true, :onSubmit=>'return validate()', :class=>form_class, "data-ajax"=>"#{ajax?(@ui)}"}) do
  = hidden_field_tag 'xmain_id', @xmain.id
  = hidden_field_tag 'ajax', ajax?(@ui)
  = hidden_field_tag 'runseq_id', @runseq.id
  = hidden_field_tag 'step', @xvars[:current_step]
  %div(data-role="fieldcontain")
    = render :inline=> @ui
  %p
  = submit_tag NEXT
%p
:javascript
  $(function() {
    $('.required').append('<span style="color:red"> *</span>');
    $('.refresh').append(" <img src='/images/refresh.png'/>");
    $("input").keypress(function (evt) {
      //Deterime where our character code is coming from within the event
      var charCode = evt.charCode || evt.keyCode;
      if (charCode  == 13) { //Enter key's keycode
        alert("กรุณาใช้เม้าส์คลิ้กที่ปุ่มเพื่อดำเนินการต่อ");
        return false;
      }
    });
  });
  $( document ).one( "pagechange", function(){
    $('input[type="file"]').textinput({theme: 'c'});
  });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mindapp-0.0.1 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml