1
1
Fork 0

[frio] Restyle album edit header. (#5426)

This commit is contained in:
Andreas Neustifter 2018-07-20 21:23:51 +02:00 committed by Hypolite Petovan
parent 24fc070c5c
commit b26da6096b
3 changed files with 22 additions and 1 deletions

View file

@ -221,7 +221,7 @@ function photos_post(App $a)
// Update the photo albums cache // Update the photo albums cache
Photo::clearAlbumCache($page_owner_uid); Photo::clearAlbumCache($page_owner_uid);
$newurl = str_replace(bin2hex($album), bin2hex($newalbum), $_SESSION['photo_return']); $newurl = System::baseUrl() . '/photos/' . $a->user['nickname'] . '/album/' . bin2hex($newalbum);
goaway($newurl); goaway($newurl);
return; // NOTREACHED return; // NOTREACHED
} }

View file

@ -2470,6 +2470,13 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
} }
/* photos */ /* photos */
#photo-album-edit-name-label {
width: 100%;
}
.photo-album-edit-name {
width: 60%;
}
.photo-album-actions { .photo-album-actions {
margin-bottom: 10px; margin-bottom: 10px;
} }

View file

@ -0,0 +1,14 @@
<div id="photo-album-edit-wrapper">
<form name="photo-album-edit-form" id="photo-album-edit-form" action="photos/{{$nickname}}/album/{{$hexalbum}}" method="post" >
<label id="photo-album-edit-name-label" for="photo-album-edit-name" >{{$nametext}}</label>
<div class="pull-left photo-album-edit-name">
<input class="form-control" type="text" size="64" name="albumname" value="{{$album|escape:'html'}}" id="photo-album-edit-name" style="width: 100%;">
</div>
<div class="pull-right">
<input class="btn-primary btn btn-small" id="photo-album-edit-submit" type="submit" name="submit" value="{{$submit|escape:'html'}}" />
<input class="btn-primary btn btn-small" id="photo-album-edit-drop" type="submit" name="dropalbum" value="{{$dropsubmit|escape:'html'}}" onclick="return confirmDelete();" />
</div>
</form>
</div>
<div class="clear"></div>