Commit c4a4926abc3d466fa96a4be89842726aab771fea

Authored by Sergio Oliveira
1 parent 7192d30f

Fixing submit blog for small screens

src/planet/templates/feedzilla/base.html
@@ -6,11 +6,11 @@ @@ -6,11 +6,11 @@
6 <hr/> 6 <hr/>
7 7
8 <div id="planet" class="row"> 8 <div id="planet" class="row">
9 - <div class="col-lg-9"> 9 + <div class="col-lg-9 col-md-9 col-sm-12">
10 {% block feedzilla_content %}{% endblock %} 10 {% block feedzilla_content %}{% endblock %}
11 </div> 11 </div>
12 12
13 - <div class="col-lg-3"> 13 + <div class="col-lg-3 col-md-3 col-sm-12">
14 <div class="well"> 14 <div class="well">
15 <h3>{% trans 'Tags' %}</h3> 15 <h3>{% trans 'Tags' %}</h3>
16 {% feedzilla_tag_cloud %} 16 {% feedzilla_tag_cloud %}
src/planet/templates/feedzilla/submit_blog.html
@@ -2,31 +2,34 @@ @@ -2,31 +2,34 @@
2 {% load i18n %} 2 {% load i18n %}
3 3
4 {% block feedzilla_content %} 4 {% block feedzilla_content %}
5 -  
6 -<div class="col-lg-6">  
7 - <h1>{% trans "Submit a blog" %}</h1>  
8 -  
9 - {% if success %}  
10 -  
11 - <p>{% trans "Thank you. Your application has been accepted and will be reviewed by admin in the near time." %}</p>  
12 - {% else %}  
13 - <p class="required"><label>{% trans "Required fields" %}</label></p>  
14 - <form method="post">  
15 - {% csrf_token %}  
16 - <fieldset class="well">  
17 - <legend>{% trans "Blog Information" %}</legend>  
18 - <p class="required"><label for="id_url">{% trans "Blog URL" %}:</label><br /><input id="id_url" maxlength="255" name="url" type="text" /></p>  
19 - <p class="required"><label for="id_title">{% trans "Blog name" %}:</label><br /><input id="id_title" maxlength="255" name="title" type="text" /></p>  
20 - <p><label for="id_author">{% trans "Name of author of the blog" %}:</label><br /><input id="id_author" maxlength="50" name="author" type="text" /></p>  
21 - <p><label for="id_feed_url">{% trans "Feed URL" %}:</label><br /><input id="id_feed_url" maxlength="255" name="feed_url" type="text" /><br /><span class="helptext">{% trans "You can specify what exactly feed you want submit" %}</span></p>  
22 - <p><input type="submit" value="{% trans "Submit" %}"></p>  
23 - </fieldset>  
24 - </form>  
25 -  
26 - {% endif %}  
27 -  
28 -</div>  
29 -  
30 -<div class="col-lg-3"></div>  
31 - 5 +<h1>{% trans "Submit a blog" %}</h1>
  6 +
  7 +{% if success %}
  8 +<p>{% trans "Thank you. Your application has been accepted and will be reviewed by admin in the near time." %}</p>
  9 +{% else %}
  10 +<form method="post" class="common-form">
  11 + {% csrf_token %}
  12 +
  13 + {% for field in form %}
  14 + <div class="col-lg-6 col-md-6 col-sm-12 col-xm-12">
  15 + <div class="form-group{% if field.field.required %} required{% endif %}{% if field.errors %} alert alert-danger has-error{% endif %}">
  16 + <label for="{{ field.name }}" class="control-label">
  17 + {{ field.label }}
  18 + </label>
  19 + <input id="id_{{ field.name }}" name="{{ field.name }}" type="text" class="form-control" />
  20 + {{ field.errors }}
  21 + </div>
  22 + </div>
  23 + {% endfor %}
  24 +
  25 + <div class="row">
  26 + <div class="col-lg-12 text-center">
  27 + <button class="btn btn-primary btn-lg">{% trans "Submit" %}</button>
  28 + </div>
  29 + </div>
  30 +
  31 + <br>
  32 +
  33 +</form>
  34 +{% endif %}
32 {% endblock %} 35 {% endblock %}