add new publish/unpublish icons
authorrougeronj
Thu, 12 Mar 2015 19:12:57 +0100
changeset 537 33788d23371e
parent 536 107a743740c1
child 538 ef8bc1204620
child 540 dcea08e78780
add new publish/unpublish icons
src/hdalab/static/hdalab/css/profile.css
src/hdalab/templates/profile_home.html
--- a/src/hdalab/static/hdalab/css/profile.css	Thu Mar 12 11:05:53 2015 +0100
+++ b/src/hdalab/static/hdalab/css/profile.css	Thu Mar 12 19:12:57 2015 +0100
@@ -114,3 +114,12 @@
 	float: right;
 	margin: 2px 10px 0px;
 }
+
+.plublish-renkan{
+	margin-left: 3px;
+	font-size: 14px;
+}
+.unplublish-renkan{
+	margin-left: 3px;
+	font-size: 15px;
+}
\ No newline at end of file
--- a/src/hdalab/templates/profile_home.html	Thu Mar 12 11:05:53 2015 +0100
+++ b/src/hdalab/templates/profile_home.html	Thu Mar 12 19:12:57 2015 +0100
@@ -113,8 +113,8 @@
                     <form action="{% url 'renkan_moderate' rk_id=r.rk_id %}" method="post">
                         {% csrf_token %}
                         <input type="hidden" name="next" value="{% url 'profile_home' %}" />
-                        {% if hr.state == 1 %}<button name="state" value="2" title="{% trans 'publish renkan' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to ask to publish this renkan ?" %}');" ><span class="ui-icon ui-icon-unlocked"></span></button>
-                        {% else %}<button name="state" title="{% trans 'unpublish renkan' %}" value="1" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to unpublish this renkan ?" %}');" ><span class="ui-icon ui-icon-locked"></span></button>{% endif %}
+                        {% if hr.state == 1 %}<button name="state" value="2" title="{% trans 'publish renkan' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to ask to publish this renkan ?" %}');" ><span class="unplublish-renkan">&#10007;</span></button>
+                        {% else %}<button name="state" title="{% trans 'unpublish renkan' %}" value="1" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to unpublish this renkan ?" %}');" ><span class="plublish-renkan">&#10003;</span></button>{% endif %}
                     </form>
                 </td>
             </tr>