Going to allow edit of attachment.

This commit is contained in:
James Cole
2015-07-18 22:49:27 +02:00
parent ed4fcc9011
commit fea0557b47
5 changed files with 36 additions and 25 deletions

View File

@@ -25,6 +25,10 @@ class ChangesForV3410 extends Migration
$table->integer('user_id')->unsigned(); $table->integer('user_id')->unsigned();
$table->string('md5', 32); $table->string('md5', 32);
$table->string('filename'); $table->string('filename');
$table->string('title')->nullable();
$table->text('description')->nullable();
$table->text('notes')->nullable();
$table->string('mime'); $table->string('mime');
$table->integer('size')->unsigned(); $table->integer('size')->unsigned();
$table->tinyInteger('uploaded', false, true)->default(0); $table->tinyInteger('uploaded', false, true)->default(0);

View File

@@ -18,6 +18,8 @@ return [
'showEverything' => 'Show everything', 'showEverything' => 'Show everything',
'never' => 'Never', 'never' => 'Never',
'search_results_for' => 'Search results for ":query"', 'search_results_for' => 'Search results for ":query"',
'nr_of_attachments' => 'One attachment|:count attachments',
'attachments' => 'Attachments',
// tour: // tour:
'prev' => 'Prev', 'prev' => 'Prev',

View File

@@ -18,6 +18,8 @@ return [
'showEverything' => 'Laat alles zien', 'showEverything' => 'Laat alles zien',
'never' => 'Nooit', 'never' => 'Nooit',
'search_results_for' => 'Zoekresultaten voor ":query"', 'search_results_for' => 'Zoekresultaten voor ":query"',
'nr_of_attachments' => 'Eén bijlage|:count bijlagen',
'attachments' => 'Bijlagen',
// tour: // tour:
'prev' => 'Vorige', 'prev' => 'Vorige',

View File

@@ -53,7 +53,7 @@
<td> <td>
<a href="{{ route('transactions.show',journal.id) }}" title="{{ journal.description }}">{{ journal.description }}</a> <a href="{{ route('transactions.show',journal.id) }}" title="{{ journal.description }}">{{ journal.description }}</a>
{% if journal.attachments|length > 0 %} {% if journal.attachments|length > 0 %}
<i class="fa fa-paperclip pull-right"></i> <i class="fa fa-paperclip pull-right" title="{{ Lang.choice('firefly.nr_of_attachments', journal.attachments|length, {count: journal.attachments|length}) }}"></i>
{% endif %} {% endif %}
</td> </td>

View File

@@ -86,7 +86,10 @@
{% for att in journal.attachments %} {% for att in journal.attachments %}
<tr> <tr>
<td> <td>
<a href="#" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a> <div class="btn-group btn-group-xs">
<a href="#" class="btn btn-default"><i class="fa fa-pencil"></i></a>
<a href="#" class="btn btn-danger"><i class="fa fa-trash"></i></a>
</div>
</td> </td>
<td> <td>
<i class="fa fa-file-pdf-o"></i> <i class="fa fa-file-pdf-o"></i>