Sha256: 775cc04272c1437a099492e0f2908d0d0673cc910ec8b5bebaf0f5d3b16780d6

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 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("Please click the button");
        return false;
      }
    });
  });
  $( document ).one( "pagechange", function(){
    $('input[type="file"]').textinput({theme: 'c'});
  });

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mindapp2-0.1.1.3 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp2-0.1.1.2 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp2-0.1.1.1 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp2-0.1.0 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.8 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.7 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.6 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.5 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.4 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.3 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml
mindapp-0.0.2 lib/generators/mindapp/templates/app/views/mindapp/run_form.haml