Add static placeholder in blog permalink field
This commit is contained in:
parent
da27362fd5
commit
dfa4dccd6c
|
@ -230,9 +230,20 @@ form.form label {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
#permalink {
|
#permalink_container {
|
||||||
width: calc(100% - 20px);
|
position: relative;
|
||||||
}
|
}
|
||||||
|
#permalink {
|
||||||
|
width: calc(100% - 225px);
|
||||||
|
padding-left: 215px;
|
||||||
|
}
|
||||||
|
#permalink_label {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
form.form input[type=submit] {
|
form.form input[type=submit] {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
|
@ -25,7 +25,8 @@ a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input, textarea {
|
||||||
|
font-family: "Fira Sans", "Open Sans",Helvetica,Arial,sans-serif;
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,10 @@
|
||||||
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
|
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
|
||||||
|
|
||||||
<? if(isset($new) AND $new==1) { ?>
|
<? if(isset($new) AND $new==1) { ?>
|
||||||
<input type="text" name="permalink" id="permalink" placeholder="URL">
|
<div id="permalink_container">
|
||||||
|
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label>
|
||||||
|
<input type="text" name="permalink" id="permalink" placeholder="URL">
|
||||||
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<label for="is_commentable">
|
<label for="is_commentable">
|
||||||
|
|
Loading…
Reference in New Issue