minor, css

This commit is contained in:
Sanj 2011-05-15 19:00:29 +05:30
parent dc9f50feee
commit d075e3d97f
2 changed files with 8 additions and 1 deletions

View File

@ -6,5 +6,5 @@
{% endfor %} {% endfor %}
<br /> <br /> <br /> <br />
<a href="create_article" title="Create New Article">Create Article</a> <a href="create_article" title="Create New Article">Create New Article</a>
{% endblock %} {% endblock %}

View File

@ -6,6 +6,11 @@
cursor: pointer; cursor: pointer;
font-family: sans-serif; font-family: sans-serif;
margin-bottom: 6px; margin-bottom: 6px;
color: #393939;
}
.templateArticle:hover {
color: #000;
} }
</style> </style>
@ -20,6 +25,7 @@ $(function() {
if ($("#articleName").val().replace(" ", "") === '') { if ($("#articleName").val().replace(" ", "") === '') {
alert("please enter a name for your article."); alert("please enter a name for your article.");
} else { } else {
$('#templateArticles').fadeOut("fast");
$('#newArticleForm').submit(); $('#newArticleForm').submit();
} }
}); });
@ -32,6 +38,7 @@ $(function() {
<div id="articleInstructions"> <div id="articleInstructions">
<b>Instructions:</b> Give your article a name and then click on a template (or other article) you would like to use as a starting point for your new article. Have fun! <b>Instructions:</b> Give your article a name and then click on a template (or other article) you would like to use as a starting point for your new article. Have fun!
</div> </div>
<br /><br />
<form id="newArticleForm" action="" method="POST"> <form id="newArticleForm" action="" method="POST">
<label for="article_name">Article Name:</label> <input type="text" id="articleName" name="article_name" /> <br /> <label for="article_name">Article Name:</label> <input type="text" id="articleName" name="article_name" /> <br />
<input type="hidden" id="articleId" name="article_id" /> <input type="hidden" id="articleId" name="article_id" />