-<my-actor-avatar-info
- *ngIf="isCreation() === false && videoChannelToUpdate"
- [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)"
-></my-actor-avatar-info>
-
<div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
</div>
</div>
- <div class="form-group">
- <label i18n for="display-name">Display name</label>
- <input
- type="text" id="display-name"
- formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
- >
- <div *ngIf="formErrors['display-name']" class="form-error">
- {{ formErrors['display-name'] }}
+ <div class="form-row"> <!-- channel grid -->
+ <div class="form-group col-12 col-lg-4 col-xl-3">
+ <div i18n class="video-channel-title">CHANNEL</div>
</div>
- </div>
- <div class="form-group">
- <label i18n for="description">Description</label>
- <textarea
- id="description" formControlName="description"
- [ngClass]="{ 'input-error': formErrors['description'] }"
- ></textarea>
- <div *ngIf="formErrors.description" class="form-error">
- {{ formErrors.description }}
- </div>
- </div>
+ <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
+
+ <my-actor-avatar-info
+ *ngIf="isCreation() === false && videoChannelToUpdate"
+ [actor]="videoChannelToUpdate" (avatarChange)="onAvatarChange($event)"
+ ></my-actor-avatar-info>
+
+ <div class="form-group">
+ <label i18n for="display-name">Display name</label>
+ <input
+ type="text" id="display-name"
+ formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
+ >
+ <div *ngIf="formErrors['display-name']" class="form-error">
+ {{ formErrors['display-name'] }}
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label i18n for="description">Description</label>
+ <textarea
+ id="description" formControlName="description"
+ [ngClass]="{ 'input-error': formErrors['description'] }"
+ ></textarea>
+ <div *ngIf="formErrors.description" class="form-error">
+ {{ formErrors.description }}
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="support">Support</label>
+ <my-help
+ helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
+ When you will upload a video in this channel, the video support field will be automatically filled by this text."
+ ></my-help>
+ <my-markdown-textarea
+ id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
+ [classes]="{ 'input-error': formErrors['support'] }"
+ ></my-markdown-textarea>
+ <div *ngIf="formErrors.support" class="form-error">
+ {{ formErrors.support }}
+ </div>
+ </div>
+
+ <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()">
+ <my-peertube-checkbox
+ inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate"
+ i18n-labelText labelText="Overwrite support field of all videos of this channel"
+ ></my-peertube-checkbox>
+ </div>
- <div class="form-group">
- <label for="support">Support</label>
- <my-help
- helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
-When you will upload a video in this channel, the video support field will be automatically filled by this text."
- ></my-help>
- <my-markdown-textarea
- id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
- [classes]="{ 'input-error': formErrors['support'] }"
- ></my-markdown-textarea>
- <div *ngIf="formErrors.support" class="form-error">
- {{ formErrors.support }}
</div>
</div>
- <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()">
- <my-peertube-checkbox
- inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate"
- i18n-labelText labelText="Overwrite support field of all videos of this channel"
- ></my-peertube-checkbox>
+ <div class="form-row"> <!-- submit placement block -->
+ <div class="col-md-7 col-xl-5"></div>
+ <div class="col-md-5 col-xl-5 d-inline-flex">
+ <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
+ </div>
</div>
-
- <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
</form>
@import '_variables';
@import '_mixins';
+.video-channel-title {
+ @include settings-big-title;
+}
+
.form-sub-title {
margin-bottom: 20px;
}
height: 30px;
}
-input[type=text] {
- @include peertube-input-text(340px);
-
- display: block;
+input {
+ &[type=text] {
+ @include peertube-input-text(340px);
+
+ display: block;
+
+ &#name {
+ width: auto;
+ flex-grow: 1;
+ }
+ }
- &#name {
- width: auto;
- flex-grow: 1;
+ &[type=submit] {
+ @include peertube-button;
+ @include orange-button;
+ margin-left: auto;
}
}
+label {
+ font-weight: $font-regular;
+ font-size: 100%;
+}
+
textarea {
@include peertube-textarea(500px, 150px);
display: block;
}
-.peertube-select-container {
- @include peertube-select-container(340px);
+my-markdown-textarea ::ng-deep {
+ .root {
+ @media screen and (max-width: 1400px) {
+ flex-direction: column !important;
+ }
+ }
}
-input[type=submit] {
- @include peertube-button;
- @include orange-button;
+.peertube-select-container {
+ @include peertube-select-container(340px);
}
<i class="ml-auto glyphicon glyphicon-menu-right"></i>
</a>
- <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account">
+ <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-settings">
<my-global-icon iconName="video-lang"></my-global-icon>
<ng-container i18n>Videos: {{ videoLanguages.join(', ') }}</ng-container>
<i class="ml-auto glyphicon glyphicon-menu-right"></i>
</a>
- <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account">
+ <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-settings">
<my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy === 'display' }" iconName="sensitive"></my-global-icon>
<my-global-icon class="hover-display-toggle" [ngClass]="{ 'not-displayed': user.nsfwPolicy !== 'display' }" iconName="unsensitive"></my-global-icon>
<ng-container i18n>Sensitive: {{ nsfwPolicy }}</ng-container>