Commits

Scott Nixon  committed 6fd3100

Added OnOff switch for Action.

  • Participants
  • Parent commits 8f31d62

Comments (0)

Files changed (2)

File inbounding/dispatch/static/img/onoff.png

Added
New image

File inbounding/dispatch/templates/mailchimp.html

 
     </div>
 
+<style>
+.onoff {
+  display: block;
+  width: 94px;
+  height: 27px;
+  overflow: hidden;
+  border-radius: 3px;
+}	
+
+onoff input[type=checkbox] {
+  display: none;
+}
+
+.onoff input[type=checkbox] + label {
+  text-indent: -9999px;
+  display: block;
+  width: 160px;
+  height: 27px;
+  line-height: 27px;
+  background: transparent url(/static/img/onoff.png) no-repeat -56px 0;
+  -webkit-transition: background-position 0.3s ease-in-out;
+  -moz-transition: background-position 0.3s ease-in-out;
+  position: relative;
+  top: -26px;
+}
+
+.onoff input[type=checkbox]:checked + label {
+  -webkit-transition: background-position 0.3s ease-in-out;
+  -moz-transition: background-position 0.3s ease-in-out;
+  background-position: -3px 0;
+}
+</style>
+
     <div class="span4">
-      <h2>ContextKick Action</h2>
-      [DISABLED]
-      <div class="iPhoneCheckContainer">
-	<input class="yesno" type="checkbox">
+      <h2>Action Status</h2>
+
+      <div class="onoff">
+	<input id="check" name="1" type="checkbox" value="0" />
+	<label for="check">Check-me</label>
       </div>
+
     </div>
     
   </div>