Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. {
  2. "html_form": "\n\n<form method=\"post\" action=\"/books/create/\" class=\"js-book-create-form\"> <!-- Class added to use js with -->\n <input type='hidden' name='csrfmiddlewaretoken' value='QAzwmmy07z8tYYM3caGWU0HDOofXu5aROxVgFr3hQMO5lX6bTHTKMt7iFYPwqxMf' />\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title\">Create a New Book :)</h4>\n </div>\n <div class=\"modal-body\">\n \n\n<!--\n This is so the form rendered is in this snippet of code.\n-->\n\n<!--Check lack of field errors -->\n <div class=\"form-group\">\n <label for=\"id_title\">Title</label>\n <input type=\"text\" name=\"title\" value=\"Test\" id=\"id_title\" required class=\"form-control\" maxlength=\"120\" />\n \n </div>\n\n<!--Check lack of field errors -->\n <div class=\"form-group has-error\">\n <label for=\"id_publication_date\">Publication date</label>\n <input type=\"text\" name=\"publication_date\" value=\"02/02/\" required class=\"form-control\" id=\"id_publication_date\" />\n \n <p class=\"help-block\">Enter a valid date.</p>\n \n </div>\n\n<!--Check lack of field errors -->\n <div class=\"form-group\">\n <label for=\"id_author\">Author</label>\n <input type=\"text\" name=\"author\" value=\"Test\" id=\"id_author\" class=\"form-control\" maxlength=\"120\" />\n \n </div>\n\n<!--Check lack of field errors -->\n <div class=\"form-group\">\n <label for=\"id_price\">Price</label>\n <input type=\"number\" name=\"price\" value=\"13.00\" step=\"0.01\" required class=\"form-control\" id=\"id_price\" />\n \n </div>\n\n<!--Check lack of field errors -->\n <div class=\"form-group\">\n <label for=\"id_pages\">Pages</label>\n <input type=\"number\" name=\"pages\" value=\"23\" class=\"form-control\" id=\"id_pages\" />\n \n </div>\n\n<!--Check lack of field errors -->\n <div class=\"form-group\">\n <label for=\"id_book_type\">Book type</label>\n <select name=\"book_type\" required class=\"form-control\" id=\"id_book_type\">\n <option value=\"\">---------</option>\n\n <option value=\"1\" selected>Hardcover</option>\n\n <option value=\"2\">Paperback</option>\n\n <option value=\"3\">E-Book</option>\n\n</select>\n \n </div>\n\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>\n <button type=\"submit\" class=\"btn btn-primary\">Create Book</button>\n </div>\n</form>",
  3. "form_is_valid": false
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement