-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from dinfcll/dv_np_CommentePhotoLienUtil
Dv np commente photo lien util
- Loading branch information
Showing
56 changed files
with
357 additions
and
165 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$("button.fullscreen").click(function () { | ||
var imgSrc = $(this).siblings('img').attr("src"); | ||
var nomUtilisateur = $(this).siblings('span.nomUtil').attr("item"); | ||
var commentaire = $(this).siblings('span.commentaire').attr("item"); | ||
var href="/Account/ProfilUtil?nomUtil="+nomUtilisateur; | ||
$("#PhotoModal img").attr("src", imgSrc); | ||
$("#nomUtil").attr("href", href); | ||
document.getElementById('nomUtil').innerHTML = nomUtilisateur; | ||
document.getElementById('commentaire').innerHTML = commentaire; | ||
}); | ||
function reste(texte) { | ||
var restants = 200 - texte.length; | ||
document.getElementById('caracteres').innerHTML = restants; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@{ | ||
ViewBag.Title = "Éditez votre commentaire"; | ||
var commentaire = ViewData["commentaire"] as string; | ||
var image = ViewData["image"] as string; | ||
} | ||
|
||
<div class="page-header"> | ||
<h2>@ViewBag.Title</h2> | ||
</div> | ||
<div> | ||
<img src="@image" class="img-thumbnail" alt="Image inaccessible" width="65%" /> | ||
<div> | ||
@using (Html.BeginForm("EditCommentaireUtil", "Account", FormMethod.Post)) | ||
{ | ||
<h3>Commentaires</h3> | ||
<br/> | ||
<textarea autofocus onkeyup = "reste(this.value);" maxlength = "200" rows="5" cols="50" name="Commentaire">@commentaire</textarea> | ||
@Html.Hidden("Image", image) | ||
<br/> | ||
<span id="caracteres">200</span><span> caractères restants</span> | ||
<br/> | ||
<input class="btn btn-lg btn-info" type="submit" value="Appliquer"/> | ||
} | ||
</div> | ||
</div> |
Oops, something went wrong.