Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated main Image module in Rich.html.erb #8290

Merged
merged 1 commit into from
Aug 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions app/views/editor/rich.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,40 @@


<!-- main_image module -->
<div class="ple-module-main_image ple-module row">
<div class="ple-module-main_image ple-module container">
<div class="ple-module-guide col-md-3"><h2>2</h2></div>

<div class="ple-module-guide col-lg-3">
<h2>2</h2>
</div>

<div class="ple-module-content row col-lg-9">
<div class="ple-drag-drop col-lg-6">Drag an image here to upload.</div>
<div class="col-lg-6 help">
<div class="ple-module-content col-md-9 container">
<div class="mainImageBox">
<div id="mainImage" class="ple-drag-drop">
Drag an image here to upload.
</div>
</div>
<div class="col-md-6 help">
<div style="display:none;" class="progress">
<div
class="progress-bar progress-bar-striped progress-bar-animated"
class="progress-bar progress-bar-striped active"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
style="width: 0%;">
</div>
style="width: 0%;"
></div>
</div>
<p>
<input
aria-label="Upload image"
type="file"
accept=".png, .jpg, .jpeg"
name="image[photo]"
value="<% if @node && @node.main_image(:rails) %><%= @node.main_image(:rails).id %><% else %><%= params[:main_image] %><% end %>"
/>
</p>

<input type="file" name="image[photo]" id="thumbnail-img">
<label for="thumbnail-img" class="thumbnailBtn">
<span>Choose a file…</span>
</label>
<div id="thumbnail-filename"></div>
<button id="removeFile" class="thumbnailBtn">Remove File</button>
<p class="ple-help">
<span class="ple-help-minor">Select an optional main image for your post.</span>
<span class="ple-help-minor"
>Select an optional main image for your post.</span
>
</p>
</div>
</div>

</div>
<!-- end main_image module -->

Expand Down