edit.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {% extends 'layout.html' %}
  2. {% block body %}
  3. <script src="/js/jquery.tagsinput.min.js" charset="utf-8"></script>
  4. <link rel="stylesheet" href="/css/jquery.tagsinput.css">
  5. {% if user.mod %}
  6. <div class="container-fluid">
  7. {% if messages.success %}
  8. <div role="alert" class="alert alert-success">
  9. {% for success in messages.success %}
  10. <div>{{ success.msg }}</div>
  11. {% endfor %}
  12. </div>
  13. {% endif %}
  14. {% if messages.error %}
  15. <div role="alert" class="alert alert-danger">
  16. {% for error in messages.error %}
  17. <div>{{ error.msg }}</div>
  18. {% endfor %}
  19. </div>
  20. {% endif %}
  21. {% if messages.info %}
  22. <div role="alert" class="alert alert-info">
  23. {% for info in messages.info %}
  24. <div>{{ info.msg }}</div>
  25. {% endfor %}
  26. </div>
  27. {% endif %}
  28. </div>
  29. <div class="container">
  30. <div class="panel panel-novo">
  31. <div class="panel-body">
  32. <form action="" class="form-horizontal">
  33. <legend> Editar produção </legend>
  34. <div class="form-group">
  35. <label class="col-sm-3" for="name">Título da Produção</label>
  36. <div class="col-sm-7">
  37. <input type="text" name="title" class="form-control" autofocus value="{{ w.title }}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="col-sm-3">Subtítulo da Produção</label>
  42. <div class="col-sm-7">
  43. <input type="text" name="subtitle" class="form-control" autofocus value="{{ w.subtitle }}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-3">Ano da Produção</label>
  48. <div class="col-sm-2">
  49. <input type="text" name="year" class="form-control" autofocus value="{{ w.year }}" >
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="col-sm-3">Duração</label>
  54. <div class="col-sm-2">
  55. <input type="text" name="duration" class="form-control" autofocus value="{{ w.duration }}" >
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="col-sm-3">Classificação Indicativa</label>
  60. <div class="col-sm-2">
  61. <input type="text" name="classind" class="form-control" autofocus value="{{ w.classind }}" >
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="col-sm-3">Descrição</label>
  66. <div class="col-sm-7">
  67. <textarea class="form-control" rows="10" name="sinopse" id="textarea">{{w.sinopse}}</textarea>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-sm-3">Url do Vídeo</label>
  72. <div class="col-sm-5">
  73. <input type="text" name="video" class="form-control" autofocus value="{{w.video}}" placeholder="y8fxto7ua">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="col-sm-3">Permalink</label>
  78. <div class="col-sm-5">
  79. <input type="text" name="permalink" class="form-control" autofocus value="{{w.permalink}}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="col-sm-3">Licença</label>
  84. <div class="col-sm-5">
  85. <input type="text" name="license" class="form-control" autofocus value="{{w.license}}">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="col-sm-3">Layout</label>
  90. <div class="col-sm-5">
  91. <input type="text" name="layout" class="form-control" autofocus value="{{w.layout}}" >
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="col-sm-3">Featured</label>
  96. <div class="col-sm-5">
  97. <input type="text" name="featured" class="form-control" autofocus value="{{w.featured}}" >
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="col-sm-3">top</label>
  102. <div class="col-sm-5">
  103. <input type="text" name="top" class="form-control" autofocus value="{{w.top}}" >
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="col-sm-3">Tags</label>
  108. <div class="col-sm-7">
  109. <input type="text" name="tags" class="form-control" autofocus value="{{w.tags}}" >
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="col-sm-3">Imagem de Background</label>
  114. <div class="col-sm-7">
  115. <input type="text" name="imgbg" class="form-control" autofocus value="{{w.imgbg}}">
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <label class="col-sm-3">Imagem para Thumbnail</label>
  120. <div class="col-sm-7">
  121. <input type="text" name="thumb480" class="form-control" autofocus value="{{w.thumb480}}">
  122. </div>
  123. <small>480x270</small>
  124. </div>
  125. <!-- Fim -->
  126. <div class="form-group">
  127. <!-- <small class="text-muted">Criando uma conta, você concorda com os <a href="/" target="_blank">Termos de Uso</a>.</small> -->
  128. </div>
  129. <div class="col-sm-3"></div>
  130. <div class="col-sm-7">
  131. <button type="submit" class="btn btn-success" formmethod="post">Salvar Alterações</button>
  132. <a href="/"><button class="btn btn-danger" type="button">Cancelar</button></a>
  133. </div>
  134. </form>
  135. </div>
  136. </div>
  137. </div>
  138. {% endif %}
  139. <script src="/js/bootstrap-select.js"></script>
  140. <script src="js/upload.js"></script>
  141. {% endblock %}