Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
86b40d25
Commit
86b40d25
authored
8 years ago
by
Matheus Agio Nerone
Browse files
Options
Downloads
Patches
Plain Diff
improving layout
Signed-off-by:
man13
<
man13@inf.ufpr.br
>
parent
ef285694
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/learning_objects/build/select_thumbnail.html.erb
+27
-19
27 additions, 19 deletions
app/views/learning_objects/build/select_thumbnail.html.erb
with
27 additions
and
19 deletions
app/views/learning_objects/build/select_thumbnail.html.erb
+
27
−
19
View file @
86b40d25
...
@@ -28,29 +28,37 @@
...
@@ -28,29 +28,37 @@
<%
content_for
:learning_object_studio_content
do
%>
<%
content_for
:learning_object_studio_content
do
%>
<h3
class=
"head text-center"
>
Envie uma foto de destaque para
<strong>
<%=
@learning_object
.
name
%>
</strong></h3>
<h3
class=
"head text-center"
>
Envie uma foto de destaque para
<strong>
<%=
@learning_object
.
name
%>
</strong></h3>
<%=
form_for
@learning_object
,
url:
wizard_path
,
method: :put
,
html:
{
multipart:
true
}
do
|
f
|
%>
<div
align=
"center"
>
<div
id=
"preview_image_target"
>
<%=
form_for
@learning_object
,
url:
wizard_path
,
method: :put
,
html:
{
multipart:
true
}
do
|
f
|
%>
<div>
<div
id=
"preview_image_target"
align=
"left"
>
<%
unless
@learning_object
.
thumbnail
.
blank?
%>
<div>
<%=
image_tag
@learning_object
.
default_thumbnail
.
url
(
:medium
)
%>
<%
unless
@learning_object
.
thumbnail
.
blank?
%>
<i
id=
"remove_thumbnail"
class=
"fa fa-trash fa-1"
></i>
<div
class=
"imageWrapper"
style=
"position: relative;"
>
<%
end
%>
<%=
image_tag
@learning_object
.
default_thumbnail
.
url
(
:medium
),
style:
"position: relative; z-index: 1;"
%>
<i
data-toggle=
"tooltip"
title=
"Deletar Thumbnail"
id=
"remove_thumbnail"
class=
"fa fa-times fa-5x"
style=
"position: absolute;left:0px; top: 0px;z-index: 10;"
></i>
</div>
<%
end
%>
</div>
</div>
</div>
</div>
<%=
f
.
file_field
:thumbnail
,
required:
true
,
id:
'thumbnail_btn'
%>
<div
align=
"left"
style=
"margin-top: 10pt"
>
<%=
f
.
file_field
:thumbnail
,
required:
true
,
id:
'thumbnail_btn'
%>
<button
type=
"submit"
class=
"btn-submit btn btn-success btn-outline-rounded green"
>
<button
type=
"submit"
class=
"btn-submit btn btn-success btn-outline-rounded green"
>
Enviar
<i
style=
"margin-left:10px;"
class=
"fa fa-paper-plane"
></i>
Enviar
<i
style=
"margin-left:10px;"
class=
"fa fa-paper-plane"
></i>
</button>
</button>
<%=
link_to
next_wizard_path
do
%>
<%=
link_to
next_wizard_path
do
%>
<button
type=
"button"
class=
"btn-submit btn btn-warning btn-outline-rounded yellow"
>
Pular etapa
</button>
<button
type=
"button"
class=
"btn-submit btn btn-warning btn-outline-rounded yellow"
>
Pular etapa
</button>
<%
end
%>
<%
end
%>
<%=
link_to
:back
do
%>
<%=
link_to
:back
do
%>
<button
type=
"button"
class=
"btn-submit btn btn-danger btn-outline-rounded red"
>
Voltar
</button>
<button
type=
"button"
class=
"btn-submit btn btn-danger btn-outline-rounded red"
>
Voltar
</button>
<%
end
%>
<%
end
%>
<%
end
%>
</div>
<%
end
%>
</div>
<script>
<script>
$
(
"
#remove_thumbnail
"
).
click
(
function
(){
$
(
"
#remove_thumbnail
"
).
click
(
function
(){
if
(
confirm
(
"
Você tem certeza?
"
)){
if
(
confirm
(
"
Você tem certeza?
"
)){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment