mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
#590 Photo upload in profile needs to simpler
This commit is contained in:
parent
2500489c93
commit
09211d9641
@ -2,9 +2,4 @@
|
|||||||
background-color: #343a40 !important;
|
background-color: #343a40 !important;
|
||||||
border-color: #343a40 #343a40 #343a40;
|
border-color: #343a40 #343a40 #343a40;
|
||||||
color: white!important;
|
color: white!important;
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide profile upload table */
|
|
||||||
.selected.file-rows-table table td:first-child ~ td {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
@ -26,6 +26,8 @@ class ProfileFormHandler
|
|||||||
|
|
||||||
if ($builder->getPostValue('file') != null) {
|
if ($builder->getPostValue('file') != null) {
|
||||||
$parameters['file_id'] = $builder->getPostValue('file');
|
$parameters['file_id'] = $builder->getPostValue('file');
|
||||||
|
} elseif (empty($builder->getPostValue('file'))) {
|
||||||
|
$parameters['file_id'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$userModel->newQuery()->where('id', Auth::id())->update($parameters);
|
$userModel->newQuery()->where('id', Auth::id())->update($parameters);
|
||||||
|
|||||||
@ -5,6 +5,10 @@
|
|||||||
table {
|
table {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
a, a:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
padding: 9px 0;
|
padding: 9px 0;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|||||||
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
progress {
|
progress {
|
||||||
margin-bottom: 0.25em;
|
margin-bottom: 0.25em;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-upload {
|
.progress-upload {
|
||||||
@ -48,3 +49,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-success {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
{% include "visiosoft.field_type.singlefile::upload/partials/body" %}
|
{% include "visiosoft.field_type.singlefile::upload/partials/body" %}
|
||||||
{% include "visiosoft.field_type.singlefile::upload/partials/template" %}
|
{% include "visiosoft.field_type.singlefile::upload/partials/template" %}
|
||||||
|
|
||||||
<div class="uploaded">
|
<div class="uploaded px-3">
|
||||||
{{ table.content|raw }}
|
{{ table.content|raw }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -51,28 +51,6 @@ class UploadTableBuilder extends TableBuilder
|
|||||||
'entry.preview' => [
|
'entry.preview' => [
|
||||||
'heading' => 'anomaly.module.files::field.preview.name',
|
'heading' => 'anomaly.module.files::field.preview.name',
|
||||||
],
|
],
|
||||||
'name' => [
|
|
||||||
'sort_column' => 'name',
|
|
||||||
'wrapper' => '
|
|
||||||
<strong>{value.file}</strong>
|
|
||||||
<br>
|
|
||||||
<small class="text-muted">{value.disk}://{value.folder}/{value.file}</small>
|
|
||||||
<br>
|
|
||||||
<span>{value.size} {value.keywords}</span>',
|
|
||||||
'value' => [
|
|
||||||
'file' => 'entry.name',
|
|
||||||
'folder' => 'entry.folder.slug',
|
|
||||||
'keywords' => 'entry.keywords.labels|join',
|
|
||||||
'disk' => 'entry.folder.disk.slug',
|
|
||||||
'size' => 'entry.size_label',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'size' => [
|
|
||||||
'sort_column' => 'size',
|
|
||||||
'value' => 'entry.readable_size',
|
|
||||||
],
|
|
||||||
'mime_type',
|
|
||||||
'folder',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -37,28 +37,6 @@ class ValueTableBuilder extends TableBuilder
|
|||||||
'entry.preview' => [
|
'entry.preview' => [
|
||||||
'heading' => 'anomaly.module.files::field.preview.name',
|
'heading' => 'anomaly.module.files::field.preview.name',
|
||||||
],
|
],
|
||||||
'name' => [
|
|
||||||
'sort_column' => 'name',
|
|
||||||
'wrapper' => '
|
|
||||||
<strong>{value.file}</strong>
|
|
||||||
<br>
|
|
||||||
<small class="text-muted">{value.disk}://{value.folder}/{value.file}</small>
|
|
||||||
<br>
|
|
||||||
<span>{value.size} {value.keywords}</span>',
|
|
||||||
'value' => [
|
|
||||||
'file' => 'entry.name',
|
|
||||||
'folder' => 'entry.folder.slug',
|
|
||||||
'keywords' => 'entry.keywords.labels|join',
|
|
||||||
'disk' => 'entry.folder.disk.slug',
|
|
||||||
'size' => 'entry.size_label',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'size' => [
|
|
||||||
'sort_column' => 'size',
|
|
||||||
'value' => 'entry.readable_size',
|
|
||||||
],
|
|
||||||
'mime_type',
|
|
||||||
'folder',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user