github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/stories/views/form.html.got (about)

     1  <div class="row stories_form">
     2  <form method="post" class="resource-update-form">
     3      <div class="actions">
     4  
     5        <a class="button grey" method="back">Cancel</a>
     6          <input type="submit" class="button" value="Save">
     7      </div>
     8    
     9      {{ if .currentUser.Admin }}
    10      
    11      <div class="wide-fields">
    12        {{ field "Url" "url" .story.URL }}
    13        {{ field "Name - add tags with hashtags, e.g. #web, add sections with a prefix e.g. Video:" "name" .story.Name }}
    14        <div class="field">
    15          <label>Text</label>
    16          {{ template "lib/editable/views/editable-toolbar.html.got"}}
    17          <textarea name="summary" class="content-textarea" id="story-content-textarea">{{.story.Summary}}</textarea>
    18          <div contenteditable class="content-editable" id="story-content-editable">{{html .story.Summary}}</div>
    19        </div>
    20      </div>
    21      
    22      <div class="inline-fields">
    23        {{ select "Status" "status" .story.Status .story.StatusOptions }}
    24        {{ field "UserId" "user_id" .story.UserID }}
    25        {{ field "Points" "points" .story.Points }}
    26      </div>
    27      
    28      {{ else }}
    29      
    30      <div class="wide-fields">
    31      {{ field "Url" "url" .story.URL }}
    32      {{ field "Name - add tags with hashtags, e.g. #web, add sections with a prefix e.g. Video:" "name" .story.Name }}
    33      {{ textarea "Add a short description of the link here for display on the story page" "summary" .story.Summary }}
    34      </div>
    35    
    36      {{ end }}
    37      
    38  
    39      <input name="authenticity_token" type="hidden" value="{{.authenticity_token}}">
    40  </form>
    41  </div>