add icons (instead of unicode) for publish/unpublish a project
authorrougeronj
Mon, 16 Mar 2015 11:04:41 +0100
changeset 541 05ed94112e9e
parent 540 dcea08e78780
child 542 a4085fc63d21
add icons (instead of unicode) for publish/unpublish a project
src/hdalab/static/hdalab/css/profile.css
src/hdalab/static/hdalab/img/check.png
src/hdalab/static/hdalab/img/uncheck.png
src/hdalab/templates/profile_home.html
--- a/src/hdalab/static/hdalab/css/profile.css	Fri Mar 13 15:11:09 2015 +0100
+++ b/src/hdalab/static/hdalab/css/profile.css	Mon Mar 16 11:04:41 2015 +0100
@@ -115,11 +115,18 @@
 	margin: 2px 10px 0px;
 }
 
-.plublish-renkan{
-	margin-left: 3px;
-	font-size: 14px;
+.publish-renkan, .unpublish-renkan{
+	display: block;
+    height: 10px;
+    width: 10px;
+    margin-top:4px;
+    margin-left:1px;
 }
-.unplublish-renkan{
-	margin-left: 3px;
-	font-size: 15px;
+.publish-renkan{
+	background: url(../img/check.png) no-repeat;
+	background-size: 10px 
+}
+.unpublish-renkan{
+	background: url(../img/uncheck.png) no-repeat;
+	background-size: 10px
 }
\ No newline at end of file
Binary file src/hdalab/static/hdalab/img/check.png has changed
Binary file src/hdalab/static/hdalab/img/uncheck.png has changed
--- a/src/hdalab/templates/profile_home.html	Fri Mar 13 15:11:09 2015 +0100
+++ b/src/hdalab/templates/profile_home.html	Mon Mar 16 11:04:41 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="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 %}
+                        {% 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="publish-renkan"></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="unpublish-renkan"></span></button>{% endif %}
                     </form>
                 </td>
             </tr>