add.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <input type="hidden" name="row[mode]" value="textarea" />
  3. <div class="form-group">
  4. <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label for="c-value" class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <p>
  19. <a href="javascript:;" class="btn btn-info btn-jsoneditor"><i class="fa fa-pencil"></i> {:__('Json editor')}</a>
  20. <a href="javascript:;" class="btn btn-primary btn-insertlink"><i class="fa fa-link"></i> {:__('Insert link')}</a>
  21. </p>
  22. <textarea id="c-value" class="form-control " rows="15" name="row[value]"></textarea>
  23. <dl class="fieldlist hide" rel="1">
  24. <dd>
  25. <ins>{:__('Json key')}</ins>
  26. <ins>{:__('Json value')}</ins>
  27. </dd>
  28. <dd>
  29. <input type="text" name="field[0]" class="form-control" id="field-0" value="" size="10" required />
  30. <input type="text" name="value[0]" class="form-control" id="value-0" value="" size="40" required />
  31. <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
  32. <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
  33. </dd>
  34. <dd><a href="javascript:;" class="append btn btn-sm btn-success"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
  35. </dl>
  36. </div>
  37. </div>
  38. <div class="form-group hide layer-footer">
  39. <label class="control-label col-xs-12 col-sm-2"></label>
  40. <div class="col-xs-12 col-sm-8">
  41. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  42. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  43. </div>
  44. </div>
  45. </form>