edit.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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. <div class="tab-content">
  34. <h1>Editar produção</h1>
  35. <ul class="nav nav-pills text-right">
  36. <li class="active"><a data-toggle="pill" href="#basic">Básico</a></li>
  37. <li><a data-toggle="pill" href="#moreinfo">Mais Informações</a></li>
  38. <li><a data-toggle="pill" href="#internal">Interno</a></li>
  39. <li><a data-toggle="pill" href="#videoseimagens">Vídeos e Imagens</a></li>
  40. <li><a data-toggle="pill" href="#download">Arquivos e Download</a></li>
  41. </ul>
  42. <!-- Basic -->
  43. <div id="basic" class="tab-pane fade in active">
  44. <legend> Básico </legend>
  45. <div class="form-group">
  46. <label class="col-sm-3" for="name">Título da Produção</label>
  47. <div class="col-sm-7">
  48. <input type="text" name="title" class="form-control" autofocus value="{{ w.title }}">
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="col-sm-3">Subtítulo da Produção</label>
  53. <div class="col-sm-7">
  54. <input type="text" name="subtitle" class="form-control" autofocus value="{{ w.subtitle }}">
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label class="col-sm-3">Título Original (Se houver)</label>
  59. <div class="col-sm-7">
  60. <input type="text" name="original_title" class="form-control" autofocus value="{{ w.original_title }}">
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label class="col-sm-3">Ano da Produção</label>
  65. <div class="col-sm-2">
  66. <input type="text" name="year" class="form-control" autofocus value="{{ w.year }}" >
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label class="col-sm-3">Duração</label>
  71. <div class="col-sm-2">
  72. <input type="text" name="duration" class="form-control" autofocus value="{{ w.duration }}" >
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <label class="col-sm-3">Classificação Indicativa</label>
  77. <div class="col-sm-2">
  78. <input type="text" name="classind" class="form-control" autofocus value="{{ w.classind }}" >
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <label class="col-sm-3">Sinopse</label>
  83. <div class="col-sm-7">
  84. <textarea class="form-control" rows="10" name="sinopse" id="textarea">{{w.sinopse}}</textarea>
  85. </div>
  86. </div>
  87. </div>
  88. <!-- More Info -->
  89. <div id="moreinfo" class="tab-pane fade">
  90. <legend>Mais informações</legend>
  91. <div class="form-group">
  92. <label class="col-sm-3">Descrição</label>
  93. <div class="col-sm-7">
  94. <textarea class="form-control" rows="10" name="description" id="textarea">{{w.description}}</textarea>
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-sm-3">Licença</label>
  99. <div class="col-sm-5">
  100. <input type="text" name="license" class="form-control" autofocus value="{{w.license}}">
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <label class="col-sm-3">País de Origem</label>
  105. <div class="col-sm-5">
  106. <input type="text" name="location_country" class="form-control" autofocus value="{{w.location.country}}">
  107. </div>
  108. </div>
  109. <div class="form-group">
  110. <label class="col-sm-3">Estado/Província de Origem</label>
  111. <div class="col-sm-5">
  112. <input type="text" name="location_state" class="form-control" autofocus value="{{w.location.state}}">
  113. </div>
  114. </div>
  115. <div class="form-group">
  116. <label class="col-sm-3">Cidade de Origem</label>
  117. <div class="col-sm-5">
  118. <input type="text" name="location_city" class="form-control" autofocus value="{{w.location.city}}">
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <label class="col-sm-3">Direção</label>
  123. <div class="col-sm-7">
  124. <input type="text" name="crew_director" class="form-control" autofocus value="{{w.crew.director}}" >
  125. </div>
  126. </div>
  127. <div class="form-group">
  128. <label class="col-sm-3">Roteiro</label>
  129. <div class="col-sm-7">
  130. <input type="text" name="crew_screenplay" class="form-control" autofocus value="{{w.crew.screenplay}}" >
  131. </div>
  132. </div>
  133. <div class="form-group">
  134. <label class="col-sm-3">Produção</label>
  135. <div class="col-sm-7">
  136. <input type="text" name="crew_producer" class="form-control" autofocus value="{{w.crew.producer}}" >
  137. </div>
  138. </div>
  139. <div class="form-group">
  140. <label class="col-sm-3">Atores</label>
  141. <div class="col-sm-7">
  142. <input type="text" name="crew_cast" class="form-control" autofocus value="{{w.crew.cast}}" >
  143. </div>
  144. </div>
  145. <div class="form-group">
  146. <label class="col-sm-3">Editor</label>
  147. <div class="col-sm-7">
  148. <input type="text" name="crew_editor" class="form-control" autofocus value="{{w.crew.editor}}" >
  149. </div>
  150. </div>
  151. <div class="form-group">
  152. <label class="col-sm-3">Equipe Técnica</label>
  153. <div class="col-sm-7">
  154. <input type="text" name="crew_other" class="form-control" autofocus value="{{w.crew.other}}" >
  155. </div>
  156. </div>
  157. <div class="form-group">
  158. <label class="col-sm-3">Permalink</label>
  159. <div class="col-sm-5">
  160. <input type="text" name="permalink" class="form-control" autofocus value="{{w.permalink}}">
  161. </div>
  162. </div>
  163. <div class="form-group">
  164. <label class="col-sm-3">Tags</label>
  165. <div class="col-sm-7">
  166. <input type="text" name="tags" class="form-control" autofocus value="{{w.tags}}" >
  167. </div>
  168. </div>
  169. </div>
  170. <!-- Internal -->
  171. <div id="internal" class="tab-pane fade">
  172. <legend>Interno</legend>
  173. <div class="form-group">
  174. <label class="col-sm-3">Layout</label>
  175. <div class="col-sm-5">
  176. <input type="text" name="layout" class="form-control" autofocus value="{{w.layout}}" >
  177. </div>
  178. </div>
  179. <div class="form-group">
  180. <label class="col-sm-3">Featured</label>
  181. <div class="col-sm-5">
  182. <input type="text" name="featured" class="form-control" autofocus value="{{w.featured}}" >
  183. </div>
  184. </div>
  185. <div class="form-group">
  186. <label class="col-sm-3">top</label>
  187. <div class="col-sm-5">
  188. <input type="text" name="top" class="form-control" autofocus value="{{w.top}}" >
  189. </div>
  190. </div>
  191. {% if user.mod %}
  192. <div class="form-group">
  193. <label class="col-sm-3">Criador</label>
  194. <div class="col-sm-7">
  195. <input type="text" name="criador" class="form-control" autofocus value="{{w.criador}}" >
  196. </div>
  197. </div>
  198. {% endif %}
  199. </div>
  200. <!-- Videos and Images -->
  201. <div id="videoseimagens" class="tab-pane fade">
  202. <legend>Videos e Imagens</legend>
  203. <div class="form-group">
  204. <label class="col-sm-3">Url do Vídeo</label>
  205. <div class="col-sm-5">
  206. <input type="text" name="video" class="form-control" autofocus value="{{w.video}}" placeholder="y8fxto7ua">
  207. </div>
  208. </div>
  209. <div class="form-group">
  210. <label class="col-sm-3">Idioma do Aúdio</label>
  211. <div class="col-sm-5">
  212. <input type="text" name="audio_language" class="form-control" autofocus value="{{w.audio_language}}" placeholder="Português">
  213. </div>
  214. </div>
  215. <div class="form-group">
  216. <label class="col-sm-3">Idioma das Legendas</label>
  217. <div class="col-sm-7">
  218. <input type="text" name="srt_language" class="form-control" autofocus value="{{w.srt_language}}" >
  219. </div>
  220. </div>
  221. <div class="form-group">
  222. <label class="col-sm-3">Qualidade do Vídeo</label>
  223. <div class="col-sm-5">
  224. <input type="text" name="quality" class="form-control" autofocus value="{{w.quality}}">
  225. </div>
  226. </div>
  227. <div class="form-group">
  228. <label class="col-sm-3">Url Youtube Trailer</label>
  229. <div class="col-sm-7">
  230. <input type="text" name="trailer" class="form-control" autofocus value="{{w.trailer}}">
  231. </div>
  232. </div>
  233. <div class="form-group">
  234. <label class="col-sm-3">Imagem de Background</label>
  235. <div class="col-sm-7">
  236. <input type="text" name="imgbg" class="form-control" autofocus value="{{w.imgbg}}">
  237. </div>
  238. </div>
  239. <div class="form-group">
  240. <label class="col-sm-3">Imagem para Thumbnail</label>
  241. <div class="col-sm-7">
  242. <input type="text" name="thumb480" class="form-control" autofocus value="{{w.thumb480}}">
  243. </div>
  244. <small>480x270</small>
  245. </div>
  246. </div>
  247. <!-- Download Files -->
  248. <div id="download" class="tab-pane fade">
  249. <legend>Opções de Download</legend>
  250. <div class="form-group">
  251. <label class="col-sm-3">Arquivo Download do Filme</label>
  252. <div class="col-sm-7">
  253. <input type="text" name="file_film" class="form-control" autofocus value="{{w.file.film}}">
  254. </div>
  255. </div>
  256. <div class="form-group">
  257. <label class="col-sm-3">Arquivo Download do Trailer</label>
  258. <div class="col-sm-7">
  259. <input type="text" name="file_trailer" class="form-control" autofocus value="{{w.file.trailer}}">
  260. </div>
  261. </div>
  262. <div class="form-group">
  263. <label class="col-sm-3">Arquivo Download das Legendas</label>
  264. <div class="col-sm-7">
  265. <input type="text" name="file_srt" class="form-control" autofocus value="{{w.file.srt}}">
  266. </div>
  267. </div>
  268. </div>
  269. <!-- Fim -->
  270. <div class="form-group">
  271. <!-- <small class="text-muted">Criando uma conta, você concorda com os <a href="/" target="_blank">Termos de Uso</a>.</small> -->
  272. </div>
  273. <div class="col-sm-3"></div>
  274. <div class="col-sm-7">
  275. <button type="submit" class="btn btn-success" formmethod="post">Salvar Alterações</button>
  276. <a href="/"><button class="btn btn-danger" type="button">Cancelar</button></a>
  277. </div>
  278. </form>
  279. </div>
  280. </div>
  281. </div>
  282. {% endif %}
  283. <script src="/js/bootstrap-select.js"></script>
  284. <script src="js/upload.js"></script>
  285. {% endblock %}