You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1KB

  1. <h2><%= H(Model.Title) %></h2>
  2. <%= HTML.FormTag("Settings", "EditPost", empty, empty) %>
  3. <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("SettingsEditForm")) %>
  4. <%= HTML.Hidden("Id", Model.Settings.ID) %>
  5. <div class="row">
  6. <div class="col-md-4">
  7. <div class="form-group">
  8. <label for="Name">Name</label>
  9. <%= HTML.TextboxExt("Name", Model.Settings.Name, Array("class", "form-control")) %>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="row">
  14. <div class="col-md-4">
  15. <div class="form-group">
  16. <label for="Value">Value</label>
  17. <%= HTML.TextboxExt("Value", Model.Settings.Value, Array("class", "form-control")) %>
  18. </div>
  19. </div>
  20. </div>
  21. <hr />
  22. <div class="form-group">
  23. <% = HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %>
  24. &nbsp;&nbsp;
  25. <%= HTML.LinkToExt("<i class='glyphicon glyphicon-remove'></i> Delete", "Settings", "Delete", Array("id", Model.Settings.ID), Array("class", "btn btn-danger")) %>
  26. &nbsp;&nbsp;
  27. <%= HTML.LinkToExt("Cancel", "Settings", "Index", empty, Array("class", "btn btn-default")) %>
  28. </div>
  29. </form>

Powered by TurnKey Linux.