edit.html 14 KB

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