Commits

Bruno Gomes committed 4f10763

finalizando para publicacao

  • Participants
  • Parent commits 3248ced

Comments (0)

Files changed (5)

File adalberto13/apps/participar/urls.py

 
 urlpatterns = patterns('',
     url(r'^$', ParticiparView.as_view(), name='participar'),
+    (r'^sucesso/$', 'django.views.generic.simple.direct_to_template', {'template': 'sucesso.html'} ),
 )

File adalberto13/apps/participar/views.py

 class ParticiparView(CreateView):
     model = Participar
     template_name = 'base.html'
-    success_url = '/?sucesso=sim'
+    success_url = '/participar/sucesso'

File adalberto13/static/css/style.css

   height: 42px;
   right: 42px;
 }
+.facebook:hover,
 .input-submit:hover {
   background-position: 0 bottom;
 }
+#sucesso{
+  position: absolute;
+  background: url(../img/bg_sucesso.jpg) no-repeat;
+  left: 375px;
+  position: absolute;
+  top: 230px;
+  width: 586px;
+}
+#sucesso h4 {
+  font-size: 18px;
+  font-style: italic;
+  font-weight: bold;
+  height: 33px;
+  padding: 4px 0 12px 45px;
+}
+#sucesso p {
+  font-size: 14px;
+}
 ul {
   list-style: none;
   padding: 0;
   height: 100%;
   color: #fff;
 }
+.facebook{
+  position: absolute;
+  height: 74px;
+  display: block;
+  background: url(../img/bt_facebook.gif) no-repeat;
+  width: 117px;
+  top:387px;
+}
 
 
 @media only screen and (min-width: 35em) {

File adalberto13/static/js/script.js

 $(document).ready(function(){
     $('.cycle-in').cycle({
         fx: 'scrollHorz',
-        timeout: 1000, 
+        timeout: 2000, 
         next:   '.bt-next', 
         prev:   '.bt-prev' 
     });

File adalberto13/templates/base.html

 <!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
 <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
 <head>
+  <meta property="og:title" content="Adalberto Franklin 13 - Prefeito - Um novo caminho para Imperatriz">
+  <meta property="og:description" content="Junte-se a nós na construção de um governo democrático, transparente, honesto e competente">
+  <meta property="og:type" content="website">
+  <meta property="og:url" content="http://adalberto13.com.br">
+  <meta property="og:image" content="http://adalberto13.com.br{{ STATIC_URL }}img/icone_adalberto.jpg" />
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
   <title></title>
         Junte-se a nós na construção de um governo democrático, transparente, honesto e competente.
       </p>
     </div>
+    <a class="facebook" href="http://www.facebook.com/adalbertofranklin13" title="Curtir no facebook: Adalberto 13" target="_bank"></a>
+    {% block box %}
     <form action="{% url participar %}" method="post">
       {% csrf_token %}
       <fieldset class="form1">
         </div>
         <div class="field-check">
           <input id="id_receive_mail" name="receber_email" type="checkbox" checked>
-          <label for="id_receive_mail">Quero receber e-mails informativos sobre a campanha</label>
+          <label for="id_receive_mail">Receber e-mails sobre a campanha</label>
         </div>
       </fieldset>
       <fieldset class="form2">
       </fieldset>
       <input class="input-submit ir" type="submit">
     </form>
+    {% endblock box %}
     <div class="vereadores-cycle">
       <div class="controls bt-prev"></div>
       <div class="cycle-in">
         <ul>
           {% for i in "1234" %}
           <li{% if forloop.last %} class="noborder"{% endif %}>
-            <a href="#"><img src="{{ MEDIA_URL }}vereadores/{{ i }}.jpg" alt="#"></a>
-            <h4>Fulano de Tal</h4>
+            <a href="#"><img src="{{ MEDIA_URL }}vereadores/{{ o }}{{ i }}.jpg" alt="#"></a>
+            <h4>Candidado PT</h4>
           </li>
           {% endfor %}
         </ul>
     s.parentNode.insertBefore(g,s)}(document,'script'));
   </script>-->
 </body>
-</html>
+</html>