Commits

Kenneth Love committed dcc3657

added cancel button to creation forms

Comments (0)

Files changed (4)

static/css/style.css

         word-break:break-all;
       }
 
+#cancel {
+  background:url('../img/cancel.png') center center no-repeat;
+  display:inline;
+  float:right;
+  height:32px;
+  text-indent:-99999px;
+  width:32px;
+}
+
 #right {
   float:left;
   margin:20px 0;
   #setup_form, #new_key_form {
     margin:10px 0;
   }
-    #setup_form fieldset, #new_key_form {
+    #setup_form fieldset, #new_key_form fieldset {
       font-weight:bold;
       margin-bottom:10px;
     }

static/img/cancel.png

Added
New image

templates/new_set.html

 		{{ form.csrf }}
 		{{ render_field(form.key_name) }}
 		{{ render_field(form.member) }}
+		<a href="{{ url_for('index') }}" id="cancel">cancel</a>
 		<input type="submit" value="Submit">
 	</form>
 

templates/new_string.html

 		{{ form.csrf }}
 		{{ render_field(form.key_name) }}
 		{{ render_field(form.key_value) }}
+		<a href="{{ url_for('index') }}" id="cancel">cancel</a>
 		<input type="submit" value="Submit">
 	</form>