Sha256: bb8e3ef6208de2df0741b82760c366c1a27a69f37a74a2729b0d17ad93890327

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

{{#if editMode}}
  <form class="simple_form form-vertical" novalidate="novalidate" accept-charset="UTF-8">
    <div class="form-group text required reply_text">
      <label class="text required control-label control-label" for="reply_text">
        <abbr title="required">*</abbr> {{t 'attributes.text'}}
      </label>
      {{textarea value=text class="text required form-control" name="reply[text]" id="reply_text"}}
    </div>
    
    <p></p>
    
    <input type="submit" name="commit" value="{{t 'general.cancel' true}}" class="btn btn-default" {{action 'cancel'}}/>  
    
  {{#if id}}
    <input type="submit" name="commit" value="{{t 'replies.update.title' true }}" class="btn btn-default" {{action 'save'}}/>
  {{else}}
    <input type="submit" name="commit" value="{{t 'replies.create.title' true }}" class="btn btn-default" {{action 'save'}}/>
  {{/if}}
  </form>
{{else}}
  {{#if id}}
    {{text}}
    
    {{#if your}}
      <a {{action 'edit'}} class="edit_reply_link">
        <span class="glyphicon glyphicon-pencil"></span> {{t 'general.edit'}}
      </a>
       | 
      <a {{action 'destroy'}} class="remove_reply_link">
        <span class="glyphicon glyphicon-remove"></span> {{t 'general.remove'}}
      </a>
    {{/if}}
  {{/if}}
{{/if}}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 app/assets/javascripts/voluntary_feedback/templates/components/reply-cell.js.handlebars