update button download temlate csv on add notification
This commit is contained in:
4
public/media/file-templates/template_notification.csv
Normal file
4
public/media/file-templates/template_notification.csv
Normal file
@ -0,0 +1,4 @@
|
||||
MSISDN
|
||||
67073111111
|
||||
67073222222
|
||||
67073333333
|
||||
|
@ -469,14 +469,27 @@ const AddDialog = () => {
|
||||
<label className="form-label flex items-center gap-1 max-w-56">
|
||||
Upload MSISDN CSV
|
||||
</label>
|
||||
<div className="flex-1 flex flex-col gap-2">
|
||||
<Input
|
||||
ref={fileInputRef}
|
||||
type="file"
|
||||
accept=".csv"
|
||||
onChange={handleFileUpload}
|
||||
className="input col-span-6"
|
||||
/>
|
||||
<div className="flex flex-col gap-2 flex-1">
|
||||
{/* Baris upload + button */}
|
||||
<div className="flex items-center gap-3">
|
||||
<Input
|
||||
ref={fileInputRef}
|
||||
type="file"
|
||||
accept=".csv"
|
||||
onChange={handleFileUpload}
|
||||
className="input flex-1"
|
||||
/>
|
||||
|
||||
<a
|
||||
href="/media/file-templates/template_notification.csv"
|
||||
download
|
||||
className="px-3 py-2 rounded-md bg-blue-600 text-white text-sm font-medium hover:bg-blue-700"
|
||||
>
|
||||
Download Template CSV
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Info file yang sudah diupload */}
|
||||
{uploadedFileName && formField.customer_phone.length > 0 && (
|
||||
<div className="flex items-center gap-2 text-sm text-green-600 bg-green-50 px-3 py-2 rounded-md">
|
||||
<Check className="w-4 h-4" />
|
||||
|
||||
Reference in New Issue
Block a user