#211 adding a search button inside an input field
Closed 4 years ago by saidat. Opened 4 years ago by saidat.
fedora-commops/ saidat/fedora-happiness-packets searchbutton  into  master

@@ -1,4 +0,0 @@ 

- {

- 	"ADMIN_USERNAME":"",

- 	"ADMIN_PASSWORD":""

- }

@@ -13,6 +13,9 @@ 

  from django.utils import timezone

  

  from .models import Message, strip_email

+ from crispy_forms.helper import FormHelper

+ from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit

+ 

  

  logger = logging.getLogger(__name__)

  
@@ -59,6 +62,9 @@ 

              Fieldset("Privacy and permissions", 'sender_named', 'sender_approved_public', 'sender_approved_public_named'),

              HTML("<br>"),

              Submit('submit', 'Send some happiness', css_class='btn-lg centered'),

+             ButtonHolder(

+                 Submit('submit', 'Submit', css_class='button white')

+             )

          )

  

      def clean(self):

file modified
+1 -2
@@ -2,8 +2,7 @@ 

  <!DOCTYPE html>

  <html lang="en">

  <head>

-     <title>Open-source Happiness Packets</title>

-     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

+          <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  

      <meta name="viewport" content="width=device-width, initial-scale=1.0">

      <link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans" rel="stylesheet">

@@ -1,4 +1,7 @@ 

  {% extends 'base.html' %}

+ {% block extra_head %}<title>Happiness Archive</title>{% endblock %}

+ 

+ {% block extra_head %}<title>Happiness Archive</title>{% endblock %}

  

  {% block content %}

  

@@ -1,5 +1,7 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>Block e-mail address</title>{% endblock %}

+ 

  {% block content %}

  

      <div class="page-header">

file modified
+3 -1
@@ -1,9 +1,11 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>FAQ-(Frequently Asked Questions)</title>{% endblock %}

+ 

  {% block content %}

  <div id="faq">

      <div class="page-header">

-         <h2>Frequently Asked Questions</h2>

+         <h2>FAQ-(Frequently Asked Questions)</h2>

      </div>

  

      <h3>Who made this and why?</h3>

@@ -1,5 +1,7 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>Get inspired</title>{% endblock %}

+ 

  {% block content %}

  

      <div class="page-header">

@@ -1,4 +1,7 @@ 

  {% extends 'base.html' %}

+ 

+ {% block extra_head %}<title>Send happiness packet</title>{% endblock %}

+ 

  {% load crispy_forms_tags %}

  

  {% block content %}

@@ -1,5 +1,7 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>Check your email</title>{% endblock %}

+ 

  {% block content %}

  

      <div class="page-header">

@@ -1,4 +1,5 @@ 

  {% extends 'base.html' %}

+ {% block extra_head %}<title>Received Happiness Packets</title>{% endblock %}

  

  {% block content %}

  

@@ -1,5 +1,5 @@ 

  {% extends 'base.html' %}

- 

+ {% block extra_head %}<title>Sent Happiness Packets</title>{% endblock %}

  {% block content %}

  

      <div class="page-header">

@@ -1,5 +1,7 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>Fedora Happiness Packets</title>{% endblock %}

+ 

  {% block content %}

  

      <div class="page-header">

@@ -1,5 +1,8 @@ 

  {% extends 'base.html' %}

  

+ {% block extra_head %}<title>Search</title>{% endblock %}

+ 

+ 

  {% block content %}

  <h2>Search</h2>

  <form method="get"  class="form-inline">