edit.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label for="module" class="control-label col-xs-12 col-sm-2">{:__('Resource title')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input type="text" class="form-control" id="title" name="row[title]" value="{$row.title}" data-rule="required" />
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="controller" class="control-label col-xs-12 col-sm-2">{:__('Event key')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input type='text' class="form-control" id="eventkey" name="row[eventkey]" value="{$row.eventkey}" data-rule="required" readonly />
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <textarea class="form-control" id="remark" name="row[remark]">{$row.remark}</textarea>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. {:build_radios('row[type]', ['text' => __('Text'), 'app' => __('App')], $row['type'])}
  24. </div>
  25. </div>
  26. <div id="expand">
  27. </div>
  28. <div class="form-group">
  29. <div class="col-xs-2"></div>
  30. <div class="col-xs-12 col-sm-8">
  31. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
  32. </div>
  33. </div>
  34. <div class="form-group hidden layer-footer">
  35. <div class="col-xs-2"></div>
  36. <div class="col-xs-12 col-sm-8">
  37. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  38. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  39. </div>
  40. </div>
  41. <select name="applist" disabled="true" class="hidden">
  42. {foreach $applist as $k => $v}
  43. <option value="{$k}">{$v.name}</option>
  44. {/foreach}
  45. </select>
  46. </form>
  47. <script>
  48. var apps = {:json_encode($applist)};
  49. var datas = {$row.content};
  50. </script>